import { Plugin } from 'vue'
import 'element-plus/theme-chalk/index.css'

import {
  ElButton,
  ElNotification,
  ElMessage
} from 'element-plus'

const components = [
  ElButton,
]

const plugins = [ElNotification, ElMessage]
export const registerElement:Plugin = {
  install(app) {
    components.forEach((components) => {
      app.component(components.name, components)
    })
    plugins.forEach((plugin) => {
      app.use(plugin)
    })
  }
}
